package com.ddwl.schema.vo.goods;

import com.ddwl.schema.vo.base.BaseVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;
import java.time.Instant;

/**
 * 秒杀抢购
 *
 * @author Fu Zhaohui
 * @version 1.0.0
 * @date 2019/8/15 10:56
 */
@ApiModel(description = "秒杀抢购Bo")
@Setter
@Getter
public class SpikeVo extends BaseVo {

    @ApiModelProperty("ID")
    private String id;
    @ApiModelProperty("商品")
    private ItemVo item;
    @ApiModelProperty("子商品")
    private SkuVo sku;
    @ApiModelProperty("优惠价格")
    private BigDecimal price;
    @ApiModelProperty("限领")
    private Integer limit;
    @ApiModelProperty("库存数")
    private Integer stock;
    @ApiModelProperty("商户ID")
    private String mchId;
    @ApiModelProperty("开始时间")
    private Instant gmtBegin;
    @ApiModelProperty("结束时间")
    private Instant gmtEnd;
    @ApiModelProperty("状态")
    private Byte status;
    @ApiModelProperty("创建时间")
    private Instant gmtCreated;
    @ApiModelProperty("修改时间")
    private Instant gmtModified;
}
